package pom_Smp_PO;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class LoginPagePO {
    public LoginPagePO(WebDriver driver) {
        this.driver = driver;
    }

    private WebDriver driver;
    By loginBtn = By.xpath("//*[@id=\"app\"]/div/div/div/div/form/button/span");
    By name = By.xpath("/html/body/div/div/div/div/div/form/div[2]/div/div/input");
    By passWord = By.xpath("/html/body/div/div/div/div/div/form/div[3]/div/div/input");

    //用户名输入框
    public WebElement userName() {
        return driver.findElement(name);
    }

    //密码登录框
    public WebElement passWord() {
        return driver.findElement(passWord);
    }

    //登录按钮
    public WebElement submitBtn() {
        return driver.findElement(loginBtn);
    }

}
